﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%@page import="java.io.InputStream"%>
<%@page import="org.apache.ibatis.io.Resources"%>
<%@page import="org.apache.ibatis.session.SqlSessionFactory"%>
<%@page import="org.apache.ibatis.session.SqlSession"%>
<%@page import="java.io.IOException"%>
<%@page import="org.apache.ibatis.session.SqlSessionFactoryBuilder"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
  <%
HashMap user = Info.getUser(request);
String uname = user.get("uname").toString();
String utype = user.get("utype").toString();
String userid = user.get("id").toString();
 %>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="桌面壁纸网站 - Clean HTML5 and CSS3 responsive template">
<meta name="author" content="MyPassion">

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<title>桌面壁纸网站 - Responsive HTML5 and CSS3 </title>

<link rel="shortcut icon" href="img/sms-4.ico" />

<!-- STYLES -->
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/superfish.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/fontello/fontello.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/flexslider.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/ui.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/base.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/style.css" />
<link rel="stylesheet" type="text/css" href="/wallpaper/frontfiles/css/960.css" /> 
 
<!--[if lt IE 9]> <script type="text/javascript" src="/wallpaper/frontfiles/js/customM.js"></script> <![endif]-->

 

</head>

<body>

<!-- Body Wrapper -->
<div class="body-wrapper">
	<div class="controller">
    <div class="controller2">

        <jsp:include page="../top.jsp"></jsp:include>
        
       
         <form name="f1"  action="mixinfocx.jsp"  method="post" style="display: inline;font-size: 14px">
            <center>
                	<table align="center" class="table1"  width="99%" style="margin-top:0px;">
                    
                    <thead>
							<tr>
                            	<td height="32" style="background-color: #fafafa" colspan="20"  align="left">
<font style="font-size: 15px;color: #EB5253">&nbsp;&nbsp;您当前的位置 : 网站基础信息管理</font></td> 
                            </tr>
					  </thead>
                     
						 
							<tr>
                            	<td height="30" align="center">类别</td>
<td height="30" align="center">操作</td>
                            </tr>
						 
						 
							<% 
new CommDAO().delete(request,"mixinfo"); 
if(request.getParameter("mtitleid1")!=null){ 
 new CommDAO().commOper("update mixinfo set mtitle ='' where id="+request.getParameter("mtitleid1"));  
} 
if(request.getParameter("mtitleid2")!=null){ 
 new CommDAO().commOper("update mixinfo set mtitle ='' where id="+request.getParameter("mtitleid2"));  
} 
HashMap<String,String> selectmap = new HashMap();
HashMap<String,String> selectymap = new HashMap();
HashMap<String,String> selectbmap = new HashMap();
 selectmap.put("infotype","");  
 selectymap.put("remo","单");  
String sql = Info.selectBuild3("mixinfo",selectmap,selectymap,selectbmap,request) ;
String url = "mixinfocx.jsp?1=1&infotype="; 
ArrayList<HashMap> list = PageManager.getPages(url,5, sql, request ); 
for(HashMap map:list){ %>
<tr>

                            	<td height="30" align="center"><%=map.get("infotype")%></td>
                            	<td height="30" align="center">
<a href="mixinfoxg.jsp?id=<%=map.get("id")%>">修改</a>
&nbsp;|&nbsp;

<a onclick="return confirm('确定要删除这条记录吗?')" href="mixinfocx.jsp?scid=<%=map.get("id")%>">删除</a>
</td>
</tr>
<%}%>
                            
                            
                            <tr>
                            	<td colspan=3 height="33" align="center">${page.info}</td>
                            </tr>
						 
					</table>
  </center>
 </form>
           
        <jsp:include page="../foot.jsp"></jsp:include>
        
        
         
    
    </div>
	</div>
</div>
<!-- / Body Wrapper -->


<!-- SCRIPTS -->
<script type="text/javascript" src="/wallpaper/frontfiles/js/jquery.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/easing.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/1.8.2.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/ui.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/carouFredSel.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/superfish.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/customM.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/flexslider-min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/tweetable.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/timeago.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/jflickrfeed.min.js"></script>
<script type="text/javascript" src="/wallpaper/frontfiles/js/mobilemenu.js"></script>

<!--[if lt IE 9]> <script type="text/javascript" src="/wallpaper/frontfiles/js/html5.js"></script> <![endif]-->
<script type="text/javascript" src="/wallpaper/frontfiles/js/mypassion.js"></script>


</body>
</html>
 
<script type="text/javascript">
<%
if(session.getAttribute("suc")!=null)
{
session.removeAttribute("suc");
%>
alert("操作成功"); 
<%}
%>
</script>
            <script language=javascript src='/wallpaper/js/ajax.js'></script>
 
<script language=javascript src='/wallpaper/js/My97DatePicker/WdatePicker.js'></script>
<script language=javascript src='/wallpaper/js/popup.js'></script>
<script language=javascript> 
function update(no){ 
pop('mixinfoxg.jsp?id='+no,'信息修改',550,'100%') 
}
</script> 
<script language=javascript> 
function add(){ 
pop('mixinfotj.jsp','信息添加',550,'100%') 
}
</script> 
<%@page import="util.Info"%> 
<%@page import="java.util.ArrayList"%> 
<%@page import="java.util.HashMap"%> 
<%@page import="util.PageManager"%> 
<%@page import="dao.CommDAO"%> 
